﻿using System;
using System.Collections.Generic;
using System.Text;
using AspNetCs.Model;
using System.Data;

namespace AspNetCs.IDAL
{
    /// <summary>
    /// 站内短消息
    /// </summary>
    public interface IMessage
    {
        /// <summary>
        /// 添加
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        int Add(MessageModel model);

        /// <summary>
        /// 修改
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        int Update(MessageModel model);


        /// <summary>
        /// 根据filter条件查询
        /// </summary>
        /// <param name="SearchPropertys">查询的字段(字段之间用逗号隔开,如果查询所有字段用*)</param>
        /// <param name="filter">筛选条件</param>
        /// <returns></returns>
        DataTable GetDataTable(string SearchPropertys, string filter);

        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="filter"></param>
        /// <returns></returns>
        int Delete(string filter);
    }
}
